package com.example.gyj.redis;

/**
 * UserKey
 * @author Gao
 * @date 2018/10/21
 */
public class UserKey extends BasePrefix {

    /**
     * 设置过期时间2天
     */
    public static final int TOKEN_EXPIRE = 3600 * 24 * 2;

    private UserKey(int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }

    public static UserKey token = new UserKey(TOKEN_EXPIRE, "tk");

    /**
     * 0代表永不过期，前缀是id
     */
    public static UserKey getById = new UserKey(0, "id");
}
